#define _CRT_SECURE_NO_WARNINGS
#include"List.h"


void ListTest1()
{
	LTNode* plist = NULL;
	LTInit(&plist);

	LTPushBack(plist,1);
	LTPrint(plist);
	LTPushBack(plist, 2);
	LTPrint(plist);
	LTPushBack(plist, 3);
	LTPrint(plist);
	LTPushBack(plist, 4);
	LTPrint(plist);

	/*LTPushFront(plist, 1);
	LTPrint(plist);
	LTPushFront(plist, 2);
	LTPrint(plist);
	LTPushFront(plist, 3);
	LTPrint(plist);*/

	/*LTPopBack(plist);
	LTPrint(plist);

	LTPopFront(plist);
	LTPrint(plist);*/

	LTNode* find = LTFind(plist, 3);
	LTInsert(find, 66);
	LTPrint(plist);
	LTErase(find->next);
	LTPrint(plist);

	LTDestroy(plist);
}
int main()
{
	ListTest1();
    return 0;
}